package org.openfdtd.core3d;

import javax.vecmath.Vector3d;
import javax.media.j3d.Transform3D;

/**
 *
 * @author Dórian C. Langbeck
 */
public final class TransformUtil {
    private TransformUtil() { }

    public static void translate(Surface face, Vector3d p) {
        Transform3D trans = new Transform3D();
        trans.setTranslation(p);
        for (Vertex v : face)
            trans.transform(v);

        face.update();
    }
}
